#ifndef DEQUEUE_H
#define DEQUEUE_H
const int NMAX = 8;

struct Dequeue {
	int data[NMAX];
	int head;
	int size;
};

extern void Clear(struct Dequeue * d);

extern int PushFront(struct Dequeue * d, int key);

extern int PushBack(struct Dequeue * d, int key);

extern int PopFront(struct Dequeue * d);

extern int PopBack(struct Dequeue * d);

extern int Front(const struct Dequeue * d);

extern int Back(const struct Dequeue * d);

extern unsigned char IsEmpty(const struct Dequeue * d);
#endif
